package com.bosssoft.cart.mapper;

import com.bosssoft.cart.pojo.ShopCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ShopCartMapper {
    List<ShopCart> queryCartList();

    void removeFromCart(@Param("bookID") int id);

    void addIntoCart(ShopCart shopCart);

    ShopCart queryShopByShopID(@Param("bookID") int id);
}
